//
//  WebViewController.swift
//  E-CycleForShop
//
//  Created by enghou on 17/3/6.
//  Copyright © 2017年 xyxorigation. All rights reserved.
//

import UIKit

class WebViewController: BaseViewController {

    
    var url : String = ""
    override func viewDidLoad() {
        super.viewDidLoad()
        self.title = "二维码信息"
        self.defaultBackButton()
        let web = UIWebView.init()
        web.frame = self.view.bounds
        self.view.addSubview(web)
        if url.characters.count > 0 {
            let webURL = URL.init(string: url);
            let request = URLRequest.init(url: webURL!)
            web.loadRequest(request)
        }
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
